import request from "@/utils/request";

// 查询消毒设备列列表
export function listDevice(query) {
  return request({
    url: "/zp/medicalOrgDisinfectDevice/list",
    method: "get",
    params: query,
  });
}

// 查询消毒设备列详细
export function getDevice(id) {
  return request({
    url: "/medicalOrgDisinfectDevice/device/" + id,
    method: "get",
  });
}

// 新增消毒设备列
export function addDevice(data) {
  return request({
    url: "zp/medicalOrgDisinfectDevice",
    method: "post",
    data: data,
  });
}

// 修改消毒设备列
export function updateDevice(data) {
  return request({
    url: "/medicalOrgDisinfectDevice/device",
    method: "put",
    data: data,
  });
}

// 删除消毒设备列
export function delDevice(id) {
  return request({
    url: "/medicalOrgDisinfectDevice/device/" + id,
    method: "delete",
  });
}
